//
//  User.swift
//  ZHTQWeibo
//
//  Created by ZHTQ on 2018/9/19.
//  Copyright © 2018年 ZHTQ. All rights reserved.
//

import UIKit

class User: NSObject {
    /// 字符串型的微博ID
    var idstr: String?
    /// 用户昵称
    var screen_name: String?
    /// 用户头像地址
    var profile_image_url: String?
    /// 是否是微博认证用户
    var verified_type: Int = -1
    /// 微博会员等级
    var mbrank: Int = -1
    
    init(dict: [String: Any]){
        idstr = dict["idstr"] as? String
        screen_name = dict["screen_name"] as? String
        profile_image_url = dict["profile_image_url"] as? String
        verified_type = dict["verified_type"] as! Int
        mbrank = dict["mbrank"] as! Int
    }
    
    override var description: String{
        return "\(screen_name) + \(verified_type) "
    }
}
